n = int(input('你要输出几项:'))
n1, n2 = (0, 1)
count = 2
if n <= 0:
    print('输入不合法！')
elif n == 1:
    print(n1)
else:
    # print(n1, ', ', n2, end=', ')
    print(n1,end=', ')
    print(n2,end=', ')
    while count < n:
        later = n1 + n2
        print(later, end=', ')
        n1, n2 = n2, later
        count += 1
print('\n')
print('*'*100)

sum = 0
for x in range(100):
    for y in range(100):
        z = 100 - x - y

        if 5*x+3*y+z/3 == 100:
            print('公鸡，母鸡，小鸡的数量分别为 %d,%d,%d' % (x, y, z))

            sum += 1
print('一共有%d种买法' % sum)
